package tour.board.to;

public class ReEpBoard {
	private int reEpNo;
	private String reEpWriter;
	private String reEpContent;
	private String reEpWritedate;
	
	public ReEpBoard(){}

	public ReEpBoard(int reEpNo, String reEpWriter, String reEpContent,
			String reEpWritedate) {
		super();
		this.reEpNo = reEpNo;
		this.reEpWriter = reEpWriter;
		this.reEpContent = reEpContent;
		this.reEpWritedate = reEpWritedate;
	}

	public int getReEpNo() {
		return reEpNo;
	}

	public void setReEpNo(int reEpNo) {
		this.reEpNo = reEpNo;
	}

	public String getReEpWriter() {
		return reEpWriter;
	}

	public void setReEpWriter(String reEpWriter) {
		this.reEpWriter = reEpWriter;
	}

	public String getReEpContent() {
		return reEpContent;
	}

	public void setReEpContent(String reEpContent) {
		this.reEpContent = reEpContent;
	}

	public String getReEpWritedate() {
		return reEpWritedate;
	}

	public void setReEpWritedate(String reEpWritedate) {
		this.reEpWritedate = reEpWritedate;
	}

	@Override
	public String toString() {
		return "ReEpBoard [reEpNo=" + reEpNo + ", reEpWriter=" + reEpWriter
				+ ", reEpContent=" + reEpContent + ", reEpWritedate="
				+ reEpWritedate + "]";
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((reEpContent == null) ? 0 : reEpContent.hashCode());
		result = prime * result + reEpNo;
		result = prime * result
				+ ((reEpWritedate == null) ? 0 : reEpWritedate.hashCode());
		result = prime * result
				+ ((reEpWriter == null) ? 0 : reEpWriter.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ReEpBoard other = (ReEpBoard) obj;
		if (reEpContent == null) {
			if (other.reEpContent != null)
				return false;
		} else if (!reEpContent.equals(other.reEpContent))
			return false;
		if (reEpNo != other.reEpNo)
			return false;
		if (reEpWritedate == null) {
			if (other.reEpWritedate != null)
				return false;
		} else if (!reEpWritedate.equals(other.reEpWritedate))
			return false;
		if (reEpWriter == null) {
			if (other.reEpWriter != null)
				return false;
		} else if (!reEpWriter.equals(other.reEpWriter))
			return false;
		return true;
	}
	
	
}
